import { LAYOUT, SubLayout } from '../../constant';

export default {
  path: '/axios',
  name: 'Axios',
  component: LAYOUT,
  redirect: '/axios/index',
  alwaysShow: true,
  meta: {
    title: '测试请求',
    icon: 'el-icon-user'
  },
  children: [
    {
      path: 'index',
      name: 'AxiosIndex',
      component: () => import('@/views/axios'),
      meta: {
        title: '请求页面'
      }
    },
    {
      path: 'sub',
      component: SubLayout,
      alwaysShow: true,
      redirect: 'sub/detail',
      meta: {
        title: '二级菜单'
      },
      children: [
        {
          path: 'detail',
          name: 'AxiosDetail',
          component: () => import('@/views/axios/detail/index.vue'),
          meta: {
            title: '三级页面'
          }
        }
      ]
    }
  ]
};
